package com.zyj.receive.domain;

import java.util.List;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.zyj.assets.domain.AssetsInfo;
import com.zyj.common.annotation.Excel;
import com.zyj.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 资产领用对象 assets_receive
 * 
 * @author zhuyujie
 * @date 2022-05-09
 */
public class AssetsReceive extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /**  */
    private Long receiveId;

    /** 资产编号 */
    @Excel(name = "资产编号")
    private String assetsId;

    /** 领用人编号 */
    private Long userId;

    /** 领用人 */
    @Excel(name = "领用人")
    private String userName;

    /** SN号 */
    @Excel(name = "SN号")
    private String assetsSn;

    /** 资产名称 */
    @Excel(name = "资产名称")
    private String assetsName;

    /** 领用日期 */

    @JsonFormat(pattern = "yyyy-MM-dd", timezone="GMT+8")
    @Excel(name = "日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date receiveTime;

    /** 预计归还日期 */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone="GMT+8")
    @Excel(name = "预计归还日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date predictTime;

    /** 领用编号 */
    @Excel(name = "编号")
    private String receiveNo;

    /** 类型 */
    @Excel(name = "类型",dictType = "receive_type")
    private String receiveType;

    /** 备注 */
    @Excel(name = "备注")
    private String receiveDesc;

    /** 0：正常 1：删除 */
    private String deleteFlag;

    /** 附件 */
    private String receiveFile;

    /** 资产信息 */
    private List<AssetsInfo> assetsInfoList;

    public void setReceiveId(Long receiveId) 
    {
        this.receiveId = receiveId;
    }

    public Long getReceiveId() 
    {
        return receiveId;
    }
    public void setAssetsId(String assetsId) 
    {
        this.assetsId = assetsId;
    }

    public String getAssetsId() 
    {
        return assetsId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setUserName(String userName) 
    {
        this.userName = userName;
    }

    public String getUserName() 
    {
        return userName;
    }
    public void setAssetsSn(String assetsSn) 
    {
        this.assetsSn = assetsSn;
    }

    public String getAssetsSn() 
    {
        return assetsSn;
    }
    public void setAssetsName(String assetsName) 
    {
        this.assetsName = assetsName;
    }

    public String getAssetsName() 
    {
        return assetsName;
    }
    public void setReceiveTime(Date receiveTime) 
    {
        this.receiveTime = receiveTime;
    }

    public Date getReceiveTime()
    {
        return receiveTime;
    }

    public void setPredictTime(Date predictTime)
    {
        this.predictTime = predictTime;
    }

    public Date getPredictTime()
    {
        return predictTime;
    }

    public void setReceiveNo(String receiveNo) 
    {
        this.receiveNo = receiveNo;
    }

    public String getReceiveNo() 
    {
        return receiveNo;
    }
    public void setReceiveType(String receiveType) 
    {
        this.receiveType = receiveType;
    }

    public String getReceiveType() 
    {
        return receiveType;
    }
    public void setReceiveDesc(String receiveDesc) 
    {
        this.receiveDesc = receiveDesc;
    }

    public String getReceiveDesc() 
    {
        return receiveDesc;
    }
    public void setDeleteFlag(String deleteFlag) 
    {
        this.deleteFlag = deleteFlag;
    }

    public String getDeleteFlag() 
    {
        return deleteFlag;
    }
    public void setReceiveFile(String receiveFile) 
    {
        this.receiveFile = receiveFile;
    }

    public String getReceiveFile() 
    {
        return receiveFile;
    }

    public List<AssetsInfo> getAssetsInfoList()
    {
        return assetsInfoList;
    }

    public void setAssetsInfoList(List<AssetsInfo> assetsInfoList)
    {
        this.assetsInfoList = assetsInfoList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("receiveId", getReceiveId())
            .append("assetsId", getAssetsId())
            .append("userId", getUserId())
            .append("userName", getUserName())
            .append("assetsSn", getAssetsSn())
            .append("assetsName", getAssetsName())
            .append("receiveTime", getReceiveTime())
            .append("receiveNo", getReceiveNo())
            .append("receiveType", getReceiveType())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("receiveDesc", getReceiveDesc())
            .append("deleteFlag", getDeleteFlag())
            .append("receiveFile", getReceiveFile())
            .append("assetsInfoList", getAssetsInfoList())
            .toString();
    }
}
